/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.comun.logger;

/**
 *
 * @author jaimeg
 */
public class CustomLogger
{
    public static void writeError(Object clazz, String message)
    {
        LoggerHelper.getLogger(clazz).error(message);

        LoggerView loggerView = new LoggerView(message);
        loggerView.setVisible(true);
    }

    public static void writeError(Object clazz, Exception ex)
    {
        LoggerHelper.getLogger(clazz).error(ex);

        LoggerView loggerView = new LoggerView(ex);
        loggerView.setVisible(true);
    }

}
